package com.ruiysoft.entity.statement;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyahui
 * @since 2019-01-17
 */
@TableName("statement_shop")
public class StatementShop extends Model<StatementShop> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 店铺id
     */
    @TableField("shop_id")
    private Long shopId;

    /**
     * 交易号
     */
    @TableField("trade_no")
    private String tradeNo;

    /**
     * 金额
     */
    private Long money;

    /**
     * 分润金额
     */
    @TableField("share_money")
    private Long shareMoney;

    /**
     * 入账时间
     */
    @TableField("trade_date")
    private Date tradeDate;

    /**
     * 类型（1，收入，2，支出）
     */
    private Integer type;

    /**
     * 状态（0，未冻结，1，系统冻结）
     */
    @TableField("is_freeze")
    private Boolean isFreeze;

    /**
     * 简介
     */
    private String summary;

    /**
     * 到账日期（可提现日期）
     */
    @TableField("arrival_date")
    private Date arrivalDate;

    public Long getId() {
        return id;
    }

    public StatementShop setId(Long id) {
        this.id = id;
        return this;
    }
    public Long getShopId() {
        return shopId;
    }

    public StatementShop setShopId(Long shopId) {
        this.shopId = shopId;
        return this;
    }
    public String getTradeNo() {
        return tradeNo;
    }

    public StatementShop setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
        return this;
    }
    public Long getMoney() {
        return money;
    }

    public StatementShop setMoney(Long money) {
        this.money = money;
        return this;
    }
    public Long getShareMoney() {
        return shareMoney;
    }

    public StatementShop setShareMoney(Long shareMoney) {
        this.shareMoney = shareMoney;
        return this;
    }
    public Date getTradeDate() {
        return tradeDate;
    }

    public StatementShop setTradeDate(Date tradeDate) {
        this.tradeDate = tradeDate;
        return this;
    }
    public Integer getType() {
        return type;
    }

    public StatementShop setType(Integer type) {
        this.type = type;
        return this;
    }
    public Boolean getFreeze() {
        return isFreeze;
    }

    public StatementShop setFreeze(Boolean isFreeze) {
        this.isFreeze = isFreeze;
        return this;
    }
    public String getSummary() {
        return summary;
    }

    public StatementShop setSummary(String summary) {
        this.summary = summary;
        return this;
    }
    public Date getArrivalDate() {
        return arrivalDate;
    }

    public StatementShop setArrivalDate(Date arrivalDate) {
        this.arrivalDate = arrivalDate;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "StatementShop{" +
        "id=" + id +
        ", shopId=" + shopId +
        ", tradeNo=" + tradeNo +
        ", money=" + money +
        ", shareMoney=" + shareMoney +
        ", tradeDate=" + tradeDate +
        ", type=" + type +
        ", isFreeze=" + isFreeze +
        ", summary=" + summary +
        ", arrivalDate=" + arrivalDate +
        "}";
    }
}
